<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var r;
        document.write("2,\t");
        for (let n = 1; n <= 100; n++) {
            for (let m = 2; m < n; m++) {
                if (n % m == 0) {
                    break;
                }
                if (n == m + 1) {
                    document.write(n + ",\t");
                }
            }
        }
    </script>
</body>
</html>